package com.adminsystem.java.user.pojo.param;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @author wangpeiao
 */
@Data
public class UserPageParam {
    // 分页参数
    @NotNull(message = "当前页码不能为空")
    @Min(value = 1, message = "页码必须大于等于1")
    private int pageNum = 1;

    @NotNull(message = "每页数量不能为空")
    @Min(value = 1, message = "每页数量必须大于等于1")
    private int pageSize = 10;

    // 查询条件
    private String username;
    private String phone;
    private Integer gender;
    private Integer status;
}

